package com.siburian.MyStuff;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.content.Intent;


public class ChooseKelas extends Activity{
	Button kelas1;
	Button kelas2;
	Button kelas3;
	Button kelas4;
	Button kelas5;
	Button kelas6;
	public static int kelasSiswa = 0;
	private static void getKelasSiswa(int Class){
		ChooseKelas.kelasSiswa = Class;
	}
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.choose_class);
        kelas1 = (Button) findViewById(R.id.btn_kelas1_sd);
        kelas1.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				
				kelasSiswa = 1;
				Intent i = new Intent(ChooseKelas.this,ListBelajar.class);
				startActivity(i);
			}
		});
        kelas2 = (Button) findViewById(R.id.btn_kelas2_sd);
        kelas2.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				kelasSiswa = 2;
				Intent i = new Intent(ChooseKelas.this,ListBelajar.class);
				startActivity(i);
			}
		});
        kelas3 = (Button) findViewById(R.id.btn_kelas3_sd);
        kelas3.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				kelasSiswa = 3;
				Intent i = new Intent(ChooseKelas.this,ListBelajar.class);
				startActivity(i);
			}
		});
        kelas4 = (Button) findViewById(R.id.btn_kelas4_sd);
        kelas4.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				kelasSiswa = 4;
				Intent i = new Intent(ChooseKelas.this,ListBelajar.class);
				startActivity(i);
			}
		});
        kelas5 = (Button) findViewById(R.id.btn_kelas5_sd);
        kelas5.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				kelasSiswa = 5;
				Intent i = new Intent(ChooseKelas.this,ListBelajar.class);
				startActivity(i);
			}
		});
        kelas6 = (Button) findViewById(R.id.btn_kelas6_sd);
        kelas6.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				kelasSiswa = 6;
				Intent i = new Intent(ChooseKelas.this,ListBelajar.class);
				startActivity(i);
			}
		});
    }
}
